<?php /* Smarty version 2.6.18, created on 2016-12-14 17:31:37
         compiled from staff/staff.subjectlist.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
 <!--左侧导航结束-->
    <style>
		@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
		table, thead, tbody, th, td, tr { 
			display: block; 
		}
		thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		td { 
			border: none;
			border-bottom: 1px solid #eee; 
			position: relative;
			padding-left:44% !important; 
			padding-top:10px ;
		}
	    #mytable tr{ margin-bottom:20px;}
		td:before { 
			position: absolute;
			top:10px;
			left:8px;
			width: 45%; 
			padding-right:10px;
			white-space: nowrap;
		}
		    td:nth-of-type(1):before { content: "教师姓名"; }
			td:nth-of-type(2):before { content: "班级名称"; }
			td:nth-of-type(3):before { content: "学科名称"; }
			td:nth-of-type(4):before { content: "周总课时"; }
			td:nth-of-type(5):before { content: "操作"; }
        }
		
	</style>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                    <p class="box-title">科任指派 （共<?php echo $this->_tpl_vars['count']; ?>
条）</p>
                    <a href="index.php?a=staff.subjectadd" class="btn btn-primary btn-sm" style="float:right; color:#fff;">批量设置</a>
                </div>
                    <div class="box-body">
                       <div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   老师：
						  </label>
						  <div class="input-group col-md-9 col-xs-12">
							  <input type="text" class="form-control" name="staff_name" value="<?php echo $this->_tpl_vars['staff_name']; ?>
">  
						  </div> 
				    </div>
                    <div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; margin:0;">
							   班级：
						  </label>
						  <div class="input-group col-md-9 col-xs-12">
							  <select class="form-control" name="class_id">
                                <option value="0"> 全部</option>
							  <?php $_from = $this->_tpl_vars['class_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                <option value="<?php echo $this->_tpl_vars['value']['class_id']; ?>
"> <?php echo $this->_tpl_vars['value']['class_name']; ?>
</option>
							  <?php endforeach; endif; unset($_from); ?>		
                              </select> 
						  </div> 
				    </div>
					<div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-3 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; margin:0;">
							   学科：
						  </label>
						  <div class="input-group col-md-9 col-xs-12">
							  <select class="form-control" name="subject_id">
                                <option value="0"> 全部</option>
							  <?php $_from = $this->_tpl_vars['subject_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                <option value="<?php echo $this->_tpl_vars['value']['subject_id']; ?>
"> <?php echo $this->_tpl_vars['value']['subject_name']; ?>
</option>
							  <?php endforeach; endif; unset($_from); ?>	
                              </select> 
						  </div> 
				    </div>
					<div class="col-md-2 col-xs-12">
					   <input type="hidden" name="a" value="staff.subjectlist">
					   <button type="submit" class="btn btn-primary">查 询</button>
					</div>
					</form>
                    <div style="clear:both; height:2px;"></div>
                        <table class="table table-bordered table" id="mytable">
                           <thead>						 
                              <tr style="background-color:#5fb2dc;">
                                 <td>教师姓名</td>
                                 <td>班级名称</td>
                                 <td>学科名称</td>
                                 <td>周总课时</td>
								 <td width="140">操作</td>
                              </tr>
							</thead>
							<tbody>
							<?php $_from = $this->_tpl_vars['sb_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                              <tr>
                                     <td><?php echo $this->_tpl_vars['value']['staff_name']; ?>
</td>
                                     <td><?php echo $this->_tpl_vars['value']['class_name']; ?>
</td>
                                     <td><?php echo $this->_tpl_vars['value']['subject_name']; ?>
</td>
                                     <td><?php echo $this->_tpl_vars['value']['week_hour']; ?>
</td>
                                     <td>
                                         <a href="index.php?a=staff.subjectupdate&id=<?php echo $this->_tpl_vars['value']['id']; ?>
" class="btn btn-warning btn-sm" title="修改"> <i class="fa fa-edit (alias)"></i></a>
                                         <a href="index.php?a=staff.subjectdel&id=<?php echo $this->_tpl_vars['value']['id']; ?>
" class="btn btn-danger btn-sm" title="删除"> <i class="fa fa-trash"></i></a>
                                     </td>
                               </tr>
							<?php endforeach; endif; unset($_from); ?>
                            </tbody>
                          </table> 
						  <?php echo $this->_tpl_vars['page']; ?>

				    </div><!--box-body -->

             </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
 <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>